package com.project.running.Service.Impl;

import com.project.running.Service.GraderecordService;

import com.project.running.bean.Graderecord;
import com.project.running.dao.GraderecordMapper;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/10/6-10-06-9:42
 * @Description：com.project.running.Service.Impl
 */

@Service
public class GraderecordServiceImpl implements GraderecordService {

    @Autowired
    GraderecordMapper mapper;
    @Override
    public Graderecord selectGradeByPoint(Long Point) {
//        SqlSession session = SqlSessionUtil.openSession();
//        GraderecordMapper mapper = session.getMapper(GraderecordMapper.class);
//        try{
//            return mapper.selectByPoint(Point);
//        }finally {
//            session.close();
//        }
        return mapper.selectByPoint(Point);
    }
}
